package com.zbkj.service.service.project.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.google.common.collect.Lists;
import com.zbkj.common.model.project.ReportApplyAudit;
import com.zbkj.service.dao.project.ReportApplyAuditMapper;
import com.zbkj.service.service.project.ReportApplyAuditService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Objects;

/**
 * <p>
 * 项目报告申请审核记录-记录驳回 服务实现类
 * </p>
 *
 * @author 
 * @since 2024-07-10
 */
@Service
public class ReportApplyAuditServiceImpl extends ServiceImpl<ReportApplyAuditMapper, ReportApplyAudit> implements ReportApplyAuditService {

    @Resource
    private ReportApplyAuditMapper reportApplyAuditMapper;
    @Override
    public List<ReportApplyAudit> getListByProjectId(Long projectId) {
        if(Objects.isNull(projectId)) {
            return Lists.newArrayList();
        }
        return reportApplyAuditMapper.getListByProjectId(projectId);
    }
}
